package collection_job;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;

public class Transition {
    public static void main(String[] args) {
        Collection<String> c=new ArrayList<>();
        c.add("one");
        c.add("two");
        c.add("three");
        c.add("four");
        c.add("five");
        System.out.println(c);
        String[]array=c.toArray(new String[8]);
        System.out.println(Arrays.toString(array));

        String[]arr={"one","two","three"};
        System.out.println("arr:"+ Arrays.toString(arr));

        List<String> list=Arrays.asList(arr);
        System.out.println("list:"+list);
    }
}
